package com.etrans.web.gps.business.log.domain;

import java.util.Date;

import com.etrans.web.gps.business.system.domain.SysUser;

public class OperateRecord {
	private Integer userId;
	private String userName;
	private Date operationTime;
	private String moduleName;
	private String operationDescribe;
	
	public OperateRecord(){}
	public OperateRecord(String moduleName,String operationDescribe,SysUser user) {
		this.userId = user.getId();
		this.userName = user.getLogin_name();
		this.operationTime=new Date();
		this.operationDescribe = operationDescribe;
		this.moduleName =moduleName;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public Date getOperationTime() {
		return operationTime;
	}
	public void setOperationTime(Date operationTime) {
		this.operationTime = operationTime;
	}
	public String getModuleName() {
		return moduleName;
	}
	public void setModuleName(String moduleName) {
		this.moduleName = moduleName;
	}
	public String getOperationDescribe() {
		return operationDescribe;
	}
	public void setOperationDescribe(String operationDescribe) {
		this.operationDescribe = operationDescribe;
	}
	@Override
	public String toString() {
		return "OperationLog [userId=" + userId + ", userName=" + userName + ", operationTime=" + operationTime
				+ ", moduleName=" + moduleName + ", operationDescribe=" + operationDescribe + "]";
	}
}
